package com.cyms.modules.order.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 车辆派遣
 * 
 * @author low
 * @email tolower@foxmail.com
 * @date 2018-12-19 00:49:45
 */
@TableName("cy_order_car")
public class OrderCarEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 
	 */
	private Long orderId;
	/**
	 * 座位数
	 */
	private Integer seatNum;
	/**
	 * 车型
	 */
	private String carType;
	/**
	 * 
	 */
	private Long companyId;
	/**
	 * 车队
	 */
	private String companyName;
	/**
	 * 
	 */
	private Long carId;
	/**
	 * 车牌号
	 */
	private String carCode;
	/**
	 * 驾驶员
	 */
	private String carDriver;
	/**
	 * 开始时间
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date startDate;
	/**
	 * 结束时间
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date endDate;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 本车收入
	 */
	private BigDecimal income;
	/**
	 * 司机借款
	 */
	private BigDecimal driverLoan;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 应付金额
	 */
	private BigDecimal totalPay;
	/**
	 * 已付金额
	 */
	private BigDecimal alreadyPay;
	/**
	 * 创建时间
	 */
	private Date createDate;
	/**
	 * 状态
	 */
	private String status;

	@TableField(exist = false)
	private List<OrderCarAmountEntity> carAmountList;
	
	@TableField(exist = false)
	private List<OrderCarPayEntity> carPayList;
	
	@TableField(exist = false)
	private OrderEntity order;
	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：
	 */
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	/**
	 * 获取：
	 */
	public Long getOrderId() {
		return orderId;
	}
	/**
	 * 设置：座位数
	 */
	public void setSeatNum(Integer seatNum) {
		this.seatNum = seatNum;
	}
	/**
	 * 获取：座位数
	 */
	public Integer getSeatNum() {
		return seatNum;
	}
	/**
	 * 设置：车型
	 */
	public void setCarType(String carType) {
		this.carType = carType;
	}
	/**
	 * 获取：车型
	 */
	public String getCarType() {
		return carType;
	}
	/**
	 * 设置：
	 */
	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}
	/**
	 * 获取：
	 */
	public Long getCompanyId() {
		return companyId;
	}
	/**
	 * 设置：车队
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	/**
	 * 获取：车队
	 */
	public String getCompanyName() {
		return companyName;
	}
	/**
	 * 设置：
	 */
	public void setCarId(Long carId) {
		this.carId = carId;
	}
	/**
	 * 获取：
	 */
	public Long getCarId() {
		return carId;
	}
	/**
	 * 设置：车牌号
	 */
	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}
	/**
	 * 获取：车牌号
	 */
	public String getCarCode() {
		return carCode;
	}
	/**
	 * 设置：驾驶员
	 */
	public void setCarDriver(String carDriver) {
		this.carDriver = carDriver;
	}
	/**
	 * 获取：驾驶员
	 */
	public String getCarDriver() {
		return carDriver;
	}
	/**
	 * 设置：开始时间
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * 获取：开始时间
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * 设置：结束时间
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	/**
	 * 获取：结束时间
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * 设置：电话
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * 获取：电话
	 */
	public String getPhone() {
		return phone;
	}
	/**
	 * 设置：本车收入
	 */
	public void setIncome(BigDecimal income) {
		this.income = income;
	}
	/**
	 * 获取：本车收入
	 */
	public BigDecimal getIncome() {
		return income;
	}
	/**
	 * 设置：司机借款
	 */
	public void setDriverLoan(BigDecimal driverLoan) {
		this.driverLoan = driverLoan;
	}
	/**
	 * 获取：司机借款
	 */
	public BigDecimal getDriverLoan() {
		return driverLoan;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * 设置：应付金额
	 */
	public void setTotalPay(BigDecimal totalPay) {
		this.totalPay = totalPay;
	}
	/**
	 * 获取：应付金额
	 */
	public BigDecimal getTotalPay() {
		return totalPay;
	}
	/**
	 * 设置：已付金额
	 */
	public void setAlreadyPay(BigDecimal alreadyPay) {
		this.alreadyPay = alreadyPay;
	}
	/**
	 * 获取：已付金额
	 */
	public BigDecimal getAlreadyPay() {
		return alreadyPay;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateDate() {
		return createDate;
	}
	/**
	 * 设置：状态
	 */
	public void setStatus(String status) {
		this.status = status;
	}
	/**
	 * 获取：状态
	 */
	public String getStatus() {
		return status;
	}
	public List<OrderCarAmountEntity> getCarAmountList() {
		return carAmountList;
	}
	public void setCarAmountList(List<OrderCarAmountEntity> carAmountList) {
		this.carAmountList = carAmountList;
	}
	public List<OrderCarPayEntity> getCarPayList() {
		return carPayList;
	}
	public void setCarPayList(List<OrderCarPayEntity> carPayList) {
		this.carPayList = carPayList;
	}
	public OrderEntity getOrder() {
		return order;
	}
	public void setOrder(OrderEntity order) {
		this.order = order;
	}
}
